//
//  Qb_ServiceViewController.m
//  Cd_Qb
//
//  Created by mac on 2018/3/8.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "Qb_ServiceViewController.h"
#import "Qb_SharedetailsViewController.h"
#import "Qb_FriendViewController.h"
#import "Qb_CardViewController.h"


@interface Qb_ServiceViewController ()
//头部试图
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ServiceHeadViewH;
//服务标签
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ServiceLabelTop;
//头部三个按钮
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ServiceBtn01Left;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ServiceBtn02Top;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ServiceBtn02H;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ServiceBtn02W;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ServiceBtn03Rigth;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ServiceBtnLabelTop;
//主要View
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ServiceMainViewTop;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ServiceMainViewLeft;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ServiceMainViewRight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ServiceMainViewBottom;

//主要view里的头部
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ServiceMainHeadViewH;
//主要view里的Scroll
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ServiceMainViewScrollH;

//主要view里的中间
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ServiceMainCenterViewH;
//主要view里的底部

@property (weak, nonatomic) IBOutlet UIView *Qb_ServiceMainCenterView;

@property (nonatomic, strong) MLPageView * pageView;

@end

@implementation Qb_ServiceViewController

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.hidden = YES;
    self.tabBarController.tabBar.hidden = NO;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self AdaptationApp];
    
    MLPageView * pageview = [MLPageView pageView];
    pageview.imgArray = @[@"Qb_Service_banner",@"Qb_Service_banner",@"Qb_Service_banner"];
    
    [self.Qb_ServiceMainCenterView addSubview:pageview];
}


- (IBAction)OnBtnClick:(UIButton*)sender {
    switch (sender.tag) {
        case 1001:
             [self.navigationController pushViewController:[Qb_SharedetailsViewController new] animated:YES];
            break;
        case 1002:
            [self.navigationController pushViewController:[Qb_FriendViewController new] animated:YES];
            break;
        case 1003:
            [self.navigationController pushViewController:[Qb_CardViewController new] animated:YES];
            break;
        case 1004:
            [self.navigationController pushViewController:[Qb_SharedetailsViewController new] animated:YES];
            break;
        case 1005:
            [self.navigationController pushViewController:[Qb_SharedetailsViewController new] animated:YES];
            break;
        case 1006:
            [self.navigationController pushViewController:[Qb_SharedetailsViewController new] animated:YES];
            break;
            
        default:
            break;
    }
   
}



@end
